//
//  NSTabView+WCExtensions.m
//  WabbitCode
//
//  Created by William Towe on 1/20/09.
//  Copyright 2009 Revolution Software. All rights reserved.
//

#import "NSTabView+WCExtensions.h"


@implementation NSTabView (WCExtensions)
- (NSTabViewItem *)tabViewItemWithIdentifier:(id)identifier; {
	NSInteger index = [self indexOfTabViewItemWithIdentifier:identifier];
	return (index == NSNotFound)?nil:[self tabViewItemAtIndex:index];
}

- (void)removeTabViewItemWithIdentifier:(id)identifier; {
	NSTabViewItem *item = [self tabViewItemWithIdentifier:identifier];
	if (item)
		[self removeTabViewItem:item];
}
@end
